package com.dpwgc.pan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dpwgc.pan.model.Notepad;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 记事本相关操作
 */
@Repository
@Mapper
public interface NotepadMapper extends BaseMapper<Notepad> {

    List<Notepad> listNotepadByUserId(int userId);

    Notepad getNotepadByUuid(String notepadUuid);

    int updateNotepadByUuid(Notepad notepad);

    int deleteNotepadByUuid(String notepadUuid);
}
